//
//  QLMHomeCollectionViewCell.m
//  Xiaomakuaixiu
//
//  Created by 龚碧容 on 2017/9/29.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "QLMHomeCollectionViewCell.h"

@implementation QLMHomeCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.contentView.backgroundColor = [UIColor yellowColor];
        [self setupImageView];
        [self setupLabel];
    }
    return self;
}

- (void)setupImageView{
    _myImageView = [[UIImageView alloc]initWithFrame:self.bounds];
    [self addSubview:_myImageView ];
}

- (void)setupLabel{
    _myLabel = [[UILabel alloc]initWithFrame:CGRectMake(5, self.center.y, 60, 20)];
    _myLabel.backgroundColor = [UIColor redColor];
    [_myImageView addSubview:_myLabel];
    
}

@end
